package com.visionork.rss;

public abstract class FeedParserFactory {
	/*
	static String feedUrl = "http://www.androidster.com/android_news.rss";
	static String twFeedUrl = "http://feeds.feedburner.com/twsugoideas?format=xml";
	*/
	
	public static FeedParser getParser(ParserType type, String feedUrl){
		switch (type){
			case SAX:
				return new SaxFeedParser(feedUrl);
			case DOM:
				return new DomFeedParser(feedUrl);
			case ANDROID_SAX:
				return new AndroidSaxFeedParser(feedUrl);
			case XML_PULL:
				return new XmlPullFeedParser(feedUrl);
			default: return null;
		}
	}
}
